package com.dwd.hrm.client;

import com.dwd.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/3/15 10:18
 * @Version 1.0
 */
@FeignClient(value = "HRM-SYSTEM", fallbackFactory = SystemClientFactory.class)
@RequestMapping("/employee")
public interface SystemClient {
    @PostMapping("/loginInfo/{loginId}")
    AjaxResult loginInfo(@PathVariable("loginId") Long loginId);
}
